Skip to content

fix: Align server default for system_created#276

Merged
utnapischtim merged 2 commits into
inveniosoftware:masterfrom
oarepo:fix-alembic-migrations
May 28, 2026
Merged

fix: Align server default for system_created#276
utnapischtim merged 2 commits into
inveniosoftware:masterfrom
oarepo:fix-alembic-migrations

Conversation

@mesemus

@mesemus mesemus commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Description

This PR aligns database schema (from alembic migrations) with the Python column definition by adding a server-side default on the database definition that is already present in alembic migrations.

Note: tests need inveniosoftware/invenio-accounts#551 to succeed.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@mesemus mesemus force-pushed the fix-alembic-migrations branch from c6c1e93 to 22240ad Compare May 15, 2026 13:21
@mesemus mesemus changed the title fix: Remove server default for system_created fix: Align server default for system_created May 15, 2026
@mesemus mesemus force-pushed the fix-alembic-migrations branch from 22240ad to 5118330 Compare May 28, 2026 08:20
* alembic migration recipe uses
  server-side default, but the
  model does not.
* fixed by adding the default to
  the model
@mesemus mesemus force-pushed the fix-alembic-migrations branch from 5118330 to bc54b8f Compare May 28, 2026 08:21
@utnapischtim utnapischtim merged commit d2faa0d into inveniosoftware:master May 28, 2026
3 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants